package myUserManage

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type MyUserManageRouter struct {
}

// InitMyUserManageRouter 初始化 MyUserManage 路由信息
func (s *MyUserManageRouter) InitMyUserManageRouter(Router *gin.RouterGroup) {
	myUserRouter := Router.Group("myUser").Use(middleware.OperationRecord())
	myUserRouterWithoutRecord := Router.Group("myUser")
	var myUserApi = v1.ApiGroupApp.MyUserManageApiGroup.MyUserManageApi
	{
		myUserRouter.POST("createMyUserManage", myUserApi.CreateMyUserManage)   // 新建MyUserManage
		myUserRouter.DELETE("deleteMyUserManage", myUserApi.DeleteMyUserManage) // 删除MyUserManage
		myUserRouter.DELETE("deleteMyUserManageByIds", myUserApi.DeleteMyUserManageByIds) // 批量删除MyUserManage
		myUserRouter.PUT("updateMyUserManage", myUserApi.UpdateMyUserManage)    // 更新MyUserManage
	}
	{
		myUserRouterWithoutRecord.GET("findMyUserManage", myUserApi.FindMyUserManage)        // 根据ID获取MyUserManage
		myUserRouterWithoutRecord.GET("getMyUserManageList", myUserApi.GetMyUserManageList)  // 获取MyUserManage列表
	}
}
